package com.zff.rental.repository.apartment;

import com.zff.rental.entity.apartment.SuitesTypeEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * @author HCY
 */
@Repository
public interface SuitesTypeRepository extends JpaRepository<SuitesTypeEntity, Long>, JpaSpecificationExecutor<SuitesTypeEntity> {
    boolean existsByApartmentIdAndName(Long apartmentId, String name);
}
